package io.finer.erp.jeecg.stock.service;

import io.finer.erp.jeecg.stock.entity.StkTrayDetail;
import io.finer.erp.jeecg.stock.entity.StkTray;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 发货托盘表
 * @Author: jeecg-boot
 * @Date:   2020-10-20
 * @Version: V1.0
 */
public interface IStkTrayService extends IService<StkTray> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(StkTray stkTray,List<StkTrayDetail> stkTrayDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(StkTray stkTray,List<StkTrayDetail> stkTrayDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
	/**
	 * @Description 创建托盘编码
	 * @return
	 * Create at: 2020-10-21 11:47:09
	 * @author: duany
	 * Revision:
	 *    2020-10-21 11:47:09 - first revision by duany
	 *        
	 */
	public String createTrayCode();

	public List<StkTray> getTrayByCodes(List<String> trayCodes);
	
	public StkTray getTrayByCode(String code);
	
}
